package com.qqt.csr.workbench.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 访客/客服聊天超时任务
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@TableName(value = "csr_chat_time_job")
public class ChatTimeJob implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 客服id
     */
    @TableField(value = "cs_id")
    private Long csId;

    /**
     * 技能组配置id
     */
    @TableField(value = "skill_set_cfg_id")
    private Long skillSetCfgId;

    /**
     *会话id
     */
    @TableField(value = "conversation_id")
    private String conversationId;

    /**
     *访客最近回复时间
     */
    @TableField(value = "visitor_last_reply_time")
    private Date visitorLastReplyTime;

    /**
     *访客id
     */
    @TableField(value = "visitor_id")
    private String visitorId;

    /**
     *渠道id
     */
    @TableField(value = "channel_id")
    private String channelId;

    /**
     *客服最近回复时间
     */
    @TableField(value = "cs_last_reply_time")
    private Date csLastReplyTime;

    /**
     *提醒状态：0 未提醒；1 访客超时回复触发提醒；2 访客超时断开会话结束提醒
     */
    @TableField(value = "visitor_warn_status")
    private Integer visitorWarnStatus;

    /**
     *提醒状态：0 未提醒；1 客服超时回复触发提醒；2 客服超时断开会话结束提醒
     */
    @TableField(value = "cs_warn_status")
    private Integer csWarnStatus;

    /**
     *会话是否已经结束：0 否；1 是
     */
    @TableField(value = "conversation_close_flag")
    private Integer conversationCloseFlag;

    /**
     * 是否移除：0 否；1 是
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;

    /**
     * 访客最近提醒时间
     */
    @TableField(value = "visitor_last_warn_time")
    private Date visitorLastWarnTime;

    /**
     * 客服最近提醒时间
     */
    @TableField(value = "cs_last_warn_time")
    private Date csLastWarnTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
